<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
{ext->getEditorsAdvanceFuntion assign="editors_advance"}
<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#F8F9F9">
	<tr>
		<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td height="25" class="defaultFormLabel">{t t=$good.name}</td>		
	</tr>
</table>

<table width="100%" border="0" bgcolor="#F8F9F9" cellpadding="0" cellspacing="0">
  <tr>
    <td style="padding:0px 3px 0px 15px">
    	{ext->class_function class="shop" func="get_product_field_data" assign="value" name=$good.name parent=$smarty.get.product_id lang=$lang}
			
			<script type="text/javascript">
		
		tinyMCE.init({ldelim}
			// General options
			language : "{if $smarty.cookies.interface_lang=="lt"}lt{else}en{/if}",
			mode : "exact",
			theme : "advanced",
			plugins : "style,advimage,file,advlink,searchreplace,contextmenu,paste,wordcount",
			elements : "{$good.name}",
			
			// Theme options
			theme_advanced_buttons1 : "undo,redo,|,bullist,numlist,|,outdent,indent,|,link,unlink,anchor,image,file,cleanup,code",
			theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull",
			//theme_advanced_buttons3 : "tablecontrols,|,sub,sup,|,charmap,iespell,media,|,fullscreen",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_statusbar_location : "bottom",
			paste_use_dialog : false,
			theme_advanced_resizing : false,
			theme_advanced_resize_horizontal : false,
			paste_auto_cleanup_on_paste : true,
			paste_convert_headers_to_strong : false,
			paste_strip_class_attributes : "all",
			paste_remove_spans : false,
			paste_remove_styles : false,
			tvs_parent : "{$data.page.id}",
			button_tile_map : true,
			tvs_tpl_parent_name : "{$data.page.name|urlencode}",
			tvs_field : "text{$good.id}"{if $editors_advance.styles.setup},
			{$editors_advance.styles.setup}{/if}{if $editors_advance.fontsize.setup}",
			{$editors_advance.fontsize.setup}{/if}{if $editors_advance.fontcolor.setup}",
			{$editors_advance.fontcolor.setup}{/if}"
		{rdelim});
		
		function toggleEditor(id, cmd) {ldelim}
			var elm = document.getElementById(id);
			if (cmd == 'mceAddControl'){ldelim}
				tinymce.get(id).show();
			{rdelim}else{ldelim}
				tinymce.get(id).hide();
			{rdelim}
		{rdelim}

		</script>
  		<textarea id="{$good.name}" name="{$good.name}" class="defaultInputTextarea" style="height:150px;" width="100%">{$value|escape:"html"}</textarea>
    </td>
  </tr>
  <tr>
    <td align="right">
	<table cellpadding="0" cellspacing="0">
		<tr>
			<td width="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>	
			<td bgcolor="#B3C3CD" height="25" style="padding:0px 10px 0px 10px"><a href="javascript:void(0);" onClick="toggleEditor('{$good.name}', 'mceAddControl'); return false;">WYSIWYG</a></td>	
			<td width="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>	
			<td bgcolor="#B3C3CD" height="25" style="padding:0px 10px 0px 10px"><a href="javascript:void(0);" onClick="toggleEditor('{$good.name}', 'mceRemoveControl'); return false;">HTML</a></td>
			<td width="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
			<td width="26"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		</tr>
	</table>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="10" bgcolor="#F8F9F9"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>